﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true"
    CodeFile="ThanhToanCongNoTra.aspx.cs" Inherits="ThanhToanCongNoTra" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div class="panel panel-success margin">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        Thanh tóan công nợ trả
                    </h3>
                </div>
                <div class="panel-body">
                    <table width="100%">
                        <tr>
                            <td>
                                <span style="margin-left: 5px;">Tháng</span><br />
                                <asp:DropDownList ID="dlThang" runat="server" CssClass="form-control with98" AutoPostBack="true"
                                    OnSelectedIndexChanged="dlThang_SelectedIndexChanged">
                                    <asp:ListItem Text="Chọn tháng" Value=""></asp:ListItem>
                                    <asp:ListItem Text="Tháng 1" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 2" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 3" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 4" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 5" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 6" Value="6"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 7" Value="7"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 8" Value="8"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 9" Value="9"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 10" Value="10"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 11" Value="11"></asp:ListItem>
                                    <asp:ListItem Text="Tháng 12" Value="12"></asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator1" runat="server"
                                    ControlToValidate="dlThang" ErrorMessage="Chọn thời gian" Display="None" Text="*"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Năm<br />
                                <asp:DropDownList ID="dlNam" runat="server" CssClass="form-control with98" AutoPostBack="true"
                                    OnSelectedIndexChanged="dlThang_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td>
                                Ngày thanh toán<br />
                                <asp:TextBox ID="txtngaythanhtoan" CssClass="form-control" runat="server">
                                </asp:TextBox>
                                <cc1:CalendarExtender PopupPosition="BottomRight" ID="CalendarExtender1" runat="server"
                                    TargetControlID="txtngaythanhtoan" Format="dd/MM/yyyy">
                                </cc1:CalendarExtender>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Custom,Numbers"
                                    TargetControlID="txtngaythanhtoan" ValidChars="/" />
                                <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator5" runat="server"
                                    ControlToValidate="txtngaythanhtoan" ErrorMessage="Chọn ngày thanh toán" Display="None"
                                    Text="*"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Bên nhận tiền<br />
                                <asp:DropDownList ID="drnhacungcap" CssClass="form-control" runat="server" DataTextField="TenNCC"
                                    DataValueField="IDs" AutoPostBack="true" OnSelectedIndexChanged="drnhacungcap_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator2" runat="server"
                                    ControlToValidate="drnhacungcap" ErrorMessage="Chọn nhà cung cấp" Display="None"
                                    Text="*"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Số dư kì trước có VAT<br />
                                <asp:TextBox ID="txtsodukitruocVAT" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số dư kì trước không VAT<br />
                                <asp:TextBox ID="txtsodukitruockhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tổng dư kỳ trước<br />
                                <asp:TextBox ID="txtsodukytruoc" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tiền cước có VAT<br />
                                <asp:TextBox ID="txttiencuocVAT" Width="150px" CssClass="form-control " runat="server"
                                    Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tiền hàng có VAT<br />
                                <asp:TextBox ID="txttienhangVAT" CssClass="form-control" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                            <td>
                                Thành tiền có&nbsp; VAT<br />
                                <asp:TextBox ID="txtthanhtienkynayVAT" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tiền cước không VAT<br />
                                <asp:TextBox ID="txttiencuockhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tiền hàng không VAT<br />
                                <asp:TextBox ID="txttienhangkhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Thành tiền không VAT<br />
                                <asp:TextBox ID="txtthanhtienkhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tổng dư có VAT<br />
                                <asp:TextBox ID="txttongduVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tổng dư không VAT<br />
                                <asp:TextBox ID="txttongdukhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số TT kỳ trước có VAT<br />
                                <asp:TextBox ID="txtsotiendathanhtoanVAT" CssClass="form-control" runat="server"
                                    Enabled="false" OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số TT kỳ trước không VAT<br />
                                <asp:TextBox ID="txtsotiendathanhtoankhongVAT" CssClass="form-control" runat="server"
                                    Enabled="false" OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tổng thanh toán kỳ trước<br />
                                <asp:TextBox ID="txttongthanhtoankytruoc" CssClass="form-control" runat="server"
                                    Enabled="false" OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tổng phải trả có VAT<br />
                                <asp:TextBox ID="txttongphaitraVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tổng phải trả không VAT<br />
                                <asp:TextBox ID="txttongphaitrakhongVAT" CssClass="form-control" runat="server" Enabled="false"
                                    OnTextChanged="txtsotienthanhtoan_TextChanged">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số đã TT kì này có VAT<br />
                                <asp:TextBox ID="txtsotienthanhtoankynayVAT" CssClass="form-control" runat="server"
                                    Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số tiền đã tt kỳ này không VAT<br />
                                <asp:TextBox ID="txtsotienthanhtoankynaykhongVAT" CssClass="form-control" runat="server"
                                    Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số TT kì này có VAT<br />
                                <asp:TextBox ID="TextBox3" CssClass="form-control" runat="server" AutoPostBack="true"
                                    OnTextChanged="txtsotienthanhtoankynaykhongVAT_TextChanged">
                                </asp:TextBox>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Custom,Numbers"
                                    TargetControlID="TextBox3" ValidChars=",." />
                            </td>
                            <td>
                                Số TT kì này có không VAT<br />
                                <asp:TextBox ID="TextBox4" CssClass="form-control" runat="server" AutoPostBack="true"
                                    OnTextChanged="txtsotienthanhtoankynaykhongVAT_TextChanged">
                                </asp:TextBox>
                                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Custom,Numbers"
                                    TargetControlID="TextBox4" ValidChars=",." />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tổng thanh toán kì này<br />
                                <asp:TextBox ID="txttongthanhtoankynay" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số dư còn lại có VAT<br />
                                <asp:TextBox ID="txtsoduconlaiVAT" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Số dư còn lại không VAT<br />
                                <asp:TextBox ID="txtsoduconlaikhongVAT" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                Tổng dư còn lại<br />
                                <asp:TextBox ID="txttongduconlai" CssClass="form-control" runat="server" Enabled="false">
                                </asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server">Thành tiền hàng có VAT</asp:Label><br />
                                <asp:TextBox ID="txtthcovat" Enabled="false" CssClass="form-control" runat="server">
                                </asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label3" runat="server">Thành tiền hàng không có VAT</asp:Label><br />
                                <asp:TextBox ID="TextBox1" Enabled="false" CssClass="form-control" runat="server">
                                </asp:TextBox>
                            </td>
                            <td>
                                <asp:DropDownList ID="drhinhthucthanhtoanVAT" CssClass="form-control" runat="server"
                                    Visible="false" AutoPostBack="true" OnSelectedIndexChanged="drhinhthucthanhtoan_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="Chọn hình thức thanh toán"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="Ngân hàng"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="Tiền mặt"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="Đối trừ công nợ"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" Visible="false">  Tài khoản</asp:Label><br />
                                <asp:DropDownList ID="drtaikhoan" Visible="false" DataTextField="TaiKhoan" DataValueField="IDs"
                                    CssClass="form-control" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <asp:Label ID="Label5" runat="server">Thành tiền hàng</asp:Label><br />
                                <asp:TextBox ID="TextBox2" Enabled="false" CssClass="form-control" runat="server">
                                </asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="6">
                                <asp:Label ID="Label4" runat="server">Nội dung</asp:Label><br />
                                <asp:TextBox Height="50px" ID="txtnoidung" CssClass="form-control" runat="server">
                                </asp:TextBox>
                            </td>
                            <td>
                                <br />
                                <asp:DropDownList ID="drhinhthuckhongvat" CssClass="form-control" runat="server"
                                    Visible="false" AutoPostBack="true" OnSelectedIndexChanged="drhinhthuckhongvat_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="Chọn hình thức thanh toán"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="Ngân hàng"></asp:ListItem>
                                    <asp:ListItem Value="2" Text="Tiền mặt"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="Đối trừ công nợ"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                                <br />
                                <asp:DropDownList ID="drtkkhongvat" Visible="false" DataTextField="TaiKhoan" DataValueField="IDs"
                                    CssClass="form-control" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnSave" ValidationGroup="Them" runat="server" Style="margin-left: 5px;"
                                    Text="Lưu lại" CssClass="btn btn-primary" OnClick="btnSave_Click" />
                                <asp:Button ID="btncapnhat" runat="server" ValidationGroup="Update" Text="Cập nhật"
                                    CssClass="btn btn-info" OnClick="btncapnhat_Click" Visible="false" />
                                <%--<asp:Button ID="btnCancel" runat="server" Text="Nhập mới" CssClass="btn btn-warning"
                                    OnClick="btnCancel_Click" />--%>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <asp:ValidationSummary ID="ValidationSummary1" HeaderText="Bạn phải nhập các trường sau:"
                ShowMessageBox="true" ValidationGroup="Them" ShowSummary="false" EnableClientScript="true"
                runat="server" />
            <asp:ValidationSummary ID="ValidationSummary2" HeaderText="Bạn phải nhập các trường sau:"
                ShowMessageBox="true" ValidationGroup="Update" ShowSummary="false" EnableClientScript="true"
                runat="server" />
            <div style="margin: 5px;">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <b>Danh sách thanh toán</b>
                    </div>
                    <asp:DropDownList ID="drthang" runat="server" Width="150px" CssClass="form-control"
                        OnSelectedIndexChanged="drthang_SelectedIndexChanged" AutoPostBack="true">
                        <asp:ListItem Text="Tháng 1" Value="1"></asp:ListItem>
                        <asp:ListItem Text="Tháng 2" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Tháng 3" Value="3"></asp:ListItem>
                        <asp:ListItem Text="Tháng 4" Value="4"></asp:ListItem>
                        <asp:ListItem Text="Tháng 5" Value="5"></asp:ListItem>
                        <asp:ListItem Text="Tháng 6" Value="6"></asp:ListItem>
                        <asp:ListItem Text="Tháng 7" Value="7"></asp:ListItem>
                        <asp:ListItem Text="Tháng 8" Value="8"></asp:ListItem>
                        <asp:ListItem Text="Tháng 9" Value="9"></asp:ListItem>
                        <asp:ListItem Text="Tháng 10" Value="10"></asp:ListItem>
                        <asp:ListItem Text="Tháng 11" Value="11"></asp:ListItem>
                        <asp:ListItem Text="Tháng 12" Value="12"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="drnam" runat="server" Width="140px" CssClass="form-control"
                        OnSelectedIndexChanged="drthang_SelectedIndexChanged" AutoPostBack="true">
                    </asp:DropDownList>
                    <asp:DropDownList ID="dlnhacungcap" runat="server" DataValueField="IDs" Width="250px"
                        CssClass="form-control" DataTextField="TenNCC">
                    </asp:DropDownList>
                    <asp:DropDownList ID="dhinhthuc" Width="250px" CssClass="form-control" runat="server">
                        <asp:ListItem Value="0" Text="Chọn hình thức thanh toán"></asp:ListItem>
                        <asp:ListItem Value="1" Text="Ngân hàng"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Tiền mặt"></asp:ListItem>
                        <asp:ListItem Value="3" Text="Đối trừ công nợ"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnXem" CssClass="btn btn-warning" runat="server" Text="Xem dữ liệu"
                        OnClick="btnXem_Click" />
                    <asp:Button ID="btnXemPC" CssClass="btn btn-info" runat="server" Text="Xem phiếu chi"
                        OnClick="btnXemPC_Click" />
                    <asp:Button ID="Button4" CssClass="btn btn-warning" runat="server" Text="In DS thanh toán"
                        OnClick="Button4_Click" />
                    <asp:Button ID="Button5" CssClass="btn btn-info" runat="server" Text="In DS phiếu chi"
                        OnClick="Button5_Click" />
                    <asp:GridView ID="GV" runat="server" AutoGenerateColumns="false" BackColor="White"
                        ShowFooter="true" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                        CellPadding="1" EmptyDataText="Không có dữ liệu nào" EnableModelValidation="True"
                        CssClass="form-control withall" Width="99%" OnRowCommand="GV_RowCommand" OnRowCreated="GV_RowCreated">
                        <Columns>
                            <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                Visible="true" ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbSua" runat="server" Width="15px" Height="15px" ImageUrl="~/img/edit.ico"
                                        CommandArgument='<%#Eval("IDs")%>' Text="Sửa" CommandName="Select" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbXoa" runat="server" Width="20px" Height="20px" ImageUrl="~/img/delete-24.png"
                                        OnClientClick="return confirm('Bạn chắc chắn muốn xóa ?')" CommandArgument='<%#Eval("IDs")%>'
                                        Text="Xóa" CommandName="Del" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ngaythanhtoan" ItemStyle-CssClass="padding" HeaderText="Ngày thanh toán"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                            <asp:BoundField DataField="TenNCC" ItemStyle-CssClass="padding" HeaderText="Bên nhận tiền"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                            <asp:BoundField DataField="SoTienThanhToanKiNayVAT" DataFormatString="{0:0,0}" ItemStyle-CssClass="padding"
                                HeaderText="VAT" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                            <asp:BoundField DataField="SoTienThanhToanKiNayKhongVAT" DataFormatString="{0:0,0}"
                                ItemStyle-CssClass="padding" HeaderText="không VAT" HeaderStyle-HorizontalAlign="Center"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField DataField="hinhthucvat" ItemStyle-CssClass="padding" HeaderText="Hình thức TT"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                            <asp:BoundField DataField="taikhoanvat" ItemStyle-CssClass="padding" HeaderText="Tài khoản TT"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                            <asp:BoundField DataField="noidung" ItemStyle-CssClass="padding" HeaderText="Nội dung"
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" Font-Bold="True" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" Height="30px" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#000066" Height="30px" />
                        <SelectedRowStyle BackColor="Lavender" Font-Bold="false" />
                    </asp:GridView>
                </div>
                <div style="margin: 5px;">
                    <asp:Button ID="btnFirst" runat="server" Text="Đầu" CssClass="btn btn-primary" OnClick="btnFirst_Click" />
                    <asp:Button ID="btnPre" runat="server" Style="margin-left: 5px;" Text="Trước" CssClass="btn btn-primary"
                        OnClick="btnPre_Click" />
                    <asp:Button ID="btnNext" runat="server" Style="margin-left: 5px;" Text="Sau" CssClass="btn btn-warning"
                        OnClick="btnNext_Click" />
                </div>
                <asp:HiddenField ID="hdID" runat="server" />
                <div style="margin: 5px;">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <b>Danh sách phiếu chi ngân hàng</b></div>
                        <asp:GridView ID="GVPhieuChi" runat="server" AutoGenerateColumns="false" BackColor="White"
                            ShowFooter="true" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                            CellPadding="1" EmptyDataText="Không có dữ liệu nào" EnableModelValidation="True"
                            CssClass="form-control withall" Width="99%">
                            <Columns>
                                <%--<asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbXoa" runat="server" Width="20px" Height="20px" ImageUrl="~/img/delete-24.png"
                                        OnClientClick="return confirm('Bạn chắc chắn muốn xóa ?')" CommandArgument='<%#Eval("IDs")%>'
                                        Text="Xóa" CommandName="Del" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbSua" runat="server" Width="15px" Height="15px" ImageUrl="~/img/edit.ico"
                                        CommandArgument='<%#Eval("IDs")%>' Text="Sửa" CommandName="Select" />
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                                <asp:BoundField DataField="ngaythang" ItemStyle-CssClass="padding" HeaderText="Ngày chi"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                <asp:BoundField DataField="noidung" ItemStyle-CssClass="padding" HeaderText="Nội dung"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                <asp:BoundField DataField="TenNCC" ItemStyle-CssClass="padding" HeaderText="Bên nhận tiền"
                                    ItemStyle-HorizontalAlign="Left" />
                                <asp:BoundField DataField="sotien" DataFormatString="{0:0,0}" ItemStyle-CssClass="padding"
                                    HeaderText="Số tiền" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                                <asp:BoundField DataField="taikhoan" ItemStyle-CssClass="padding" HeaderText="Tài khoản-Ngân hàng"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                <asp:BoundField DataField="PC" ItemStyle-CssClass="padding" HeaderText="Hình thức chi"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                <asp:BoundField DataField="sopc" ItemStyle-CssClass="padding" HeaderText="Số PC"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" Font-Bold="True" HorizontalAlign="Right" />
                            <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" Height="30px" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <RowStyle BackColor="White" ForeColor="#000066" Height="30px" />
                            <SelectedRowStyle BackColor="Lavender" Font-Bold="false" />
                        </asp:GridView>
                        <div style="margin: 5px;">
                            <asp:Button ID="Button1" runat="server" Text="Đầu" CssClass="btn btn-primary" OnClick="Button1_Click" />
                            <asp:Button ID="Button2" runat="server" Style="margin-left: 5px;" Text="Trước" CssClass="btn btn-primary"
                                OnClick="Button2_Click" />
                            <asp:Button ID="Button3" runat="server" Style="margin-left: 5px;" Text="Sau" CssClass="btn btn-warning"
                                OnClick="Button3_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="Button4" />
            <asp:PostBackTrigger ControlID="Button5" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
